#include "stdafx.h"
#include "ClientSocket.h"
#include "ChatClientExam.h"


CClientSocket::CClientSocket()
{
}


CClientSocket::~CClientSocket()
{
}


void CClientSocket::OnReceive(int nErrorCode)
{
	((CChatClientExamApp*)AfxGetApp())->ReceiveData();
	CSocket::OnReceive(nErrorCode);
}


void CClientSocket::OnClose(int nErrorCode)
{
	((CChatClientExamApp*)AfxGetApp())->CloseChild();
	CSocket::OnClose(nErrorCode);
}
